<?php
/**
 * Template Name: Home Template
 */
global $dktmSetting;
get_header();
?>

<div class="banner display">
    <?php
    $home_shortcode = @$dktmSetting['shortcode_home'];
    if ($home_shortcode != "") {
        echo do_shortcode($home_shortcode);
    }
    //putRevSlider('d-ktm') 
    ?>

</div>
<div class="clear"></div>

<div id="primary">
    <div id="content" role="main">
<?php include_once TEMPLATEPATH . '/helpers/templates/latestNews.php'; ?>
        <div class="clear"></div>
        <!--<section class="latestNews newsWrapper">
                <h1>Latest News</h1>
                <ul class="newsSlider">

        <?php
        $args = array('category_name' => 'newsSlider', 'posts_per_page' => -1, 'post_status' => 'publish');
        $query = new WP_Query($args);
        if ($query->have_posts()) {
            while ($query->have_posts()) {
                $query->the_post();
                //the_post_thumbnail();
                ?>
                <?php $image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'single-post-thumbnail'); ?>
                                        
                                                <li>
                                                        <a href=""><?php the_content(); ?></a>
                                                                                        </li>
                                        
                <?php
            }
        }
        ?>

                </ul>
                <div class="clear"></div>
        </section>
        <div class="clear"></div> -->
        <section id="category">
            <div class="wrapper">
                <?php dynamic_sidebar("Home Boxes"); ?>
            </div>
        </section>
        <!--<section id="catagory-home">
                                <div class="wrapper">
        <?php
        $program = new WP_Query('post_type=catagory-home');
        while ($program->have_posts()) : $program->the_post();
            ?>
                                                    <div class="programCateogry">
                                                            
                                                                    <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                                                                    <span class="hover">
    <?php echo get_post_meta(get_the_ID(), 'wpcf-program-info', true); ?>
                                                                    </span>	
                                                                    
                                                    
                                                    </div>
<?php endwhile; ?>						
                                </div>
                        </section>
        -->
        <div class="clear"></div>

        <section class="OurNetworks">
            <h1>Our Networks</h1>

            <div class="wrapper">
                <ul class="logoSlider">
                    <?php $profs = new WP_Query(array('post_type' => 'network', 'posts_per_page' => -1)); ?>
                    <?php
                    while ($profs->have_posts()) {
                        $profs->the_post();
                        $thumb_id = get_post_thumbnail_id();
                        $image = wp_get_attachment_image_src($thumb_id, 'full');
                        $ext_url = build_our_network_url();
                        ?>
                        <li class="eachProf">
                            <div class="transorm">
                                <div class="sliderImage">
                                    <a target="_blank" href="<?php echo $ext_url; ?>"><img src="<?php echo $image[0]; ?>"></a>
                                </div>
                            </div>

                        </li>
<?php } ?>
                </ul>
                <div class="clear"></div>
                <span><?php echo @$dktmSetting['network']; ?></span>
            </div>
        </section>
    </div><!-- #content -->
</div><!-- #primary -->
<div class="clear"></div>
<?php //get_sidebar();  ?>
<?php get_footer(); ?>
